cmake_minimum_required(VERSION 2.8.3)
project(my_ros_helloworld_cpluse)

## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs genmsg)


## Declare a catkin package
catkin_package()

## 编译 talker and listener
include_directories(include ${catkin_INCLUDE_DIRS})


add_executable(listener
        src/listener.cpp
        )
target_link_libraries(listener ${catkin_LIBRARIES})


add_executable(talker
        src/talker.cpp
        )
target_link_libraries(talker ${catkin_LIBRARIES})


